#include <iostream>
#include "stdafx.h"

#ifndef MYTIME3_H
#define MYTIME3_H
class mytime3
{
private:
	int hours;
	int minutes;
public:
	mytime3(void);
	~mytime3(void);
	mytime3(int h,int m=0);
	void addmin(int m);
	void addhour(int h);
	void reset(int h=0,int m =0);
	mytime3 operator+(const mytime3 &time);
	mytime3 operator-(const mytime3 &time);
	mytime3 operator*(double n) const;
	friend mytime3 operator*(double m,const mytime3 &time){
		return time * m;
	}
	friend std::ostream & operator<<(std::ostream &os,const mytime3 &time);
};
#endif
